package com.learn.se;

public class HashMapTest {

    public static void main(String[] args) {
        String  str1="test1";
        // 与运算
        // 取模运算
        long hash=str1.hashCode();
        int n=64;
        long result1=(n-1)&hash;
        long result2=hash%n;
        System.out.println(result1);
        System.out.println(result2);
    }
}
